Muhammad Usman

240 Reputation

5 Badges

12 years, 40 days
Beijing, China

MaplePrimes Activity


These are questions asked by Muhammad Usman

Hi

I hope everyone is fine and doing well. I want to constrcut the set of monomials {p[0],p[1],...,p[m-1]} for any value of m for example, for m=6 the monoial is define as:

p[0]:=1;

p[1]:=x;

p[2]:=y;

p[3]:=x^2;

p[4]:=x*y;

p[5]:=y^2;

and similarly for m=10 the monomials should be given as:

p[0]:=1;

p[1]:=x;

p[2]:=y;

p[3]:=x^2;

p[4]:=x*y;

p[5]:=y^2;

p[6]:=x^3;

p[7]:=x^2*y;

p[8]:=x*y^2;

p[9]:=y^3;

I am waiting for your positive response. Please take care and thanks

Hi Dear,

I hope everyone is fine here. In the attached file, I have generated a square matrix "Q" using two-dimensional polynomials. The dimension of the square matrix "Q" depends on M1 and M2 parameters. In my simulation, sometimes I need this matrix of 1000 by 1000 dimensions. Using the attached method, it took a lot of time to compute two-dimensional polynomials and then to compute the general square matrix "Q." I wanted to write this matrix using proc (procedures). Maybe by using this way, I don't need to compute the polynomials, and it took less time to compute the square matrix "Q." I know how to generate a matrix using proc when its dimension depends on one parameter. However, here, the dimension of matrix "Q" depends on two parameters, M1 and M2. So, I am a little bit confused about how to adjust them in proc. Please see the attached file and share your useful ideas. 

help.mw

Thanks in advance

Hi
I hope you are doing well. I have plotted (in the attached file) the contour plot of the function and its density plot; both have the same behavior but different appearances (error in direction may be rotation needs to apply). I don't know why it happens because this code works well for other solutions. Kindly have a look and fix the issue. I shall be waiting for your positive response. Please take care.
Help.mw

Hi,

I hope everyone is fine here. I want to write the following nested loop in my code

restart; TOL := 10^(-3); v[i] := 10^(-4); u[i] := 10^(-4);
if abs(v[i]-1)<=TOL then    if abs(u[i])<=TOL then break    else t[i+1]:=t[i]+alpha; else; fi; fi;

it is not working. If the first condition (v[i]-1)<=TOL is fulfilled, then we have to check the second condition, u[i]<=TOL. That’s why I don’t use “and” here. If both conditions are fulfilled, then stop the loop and if second the condition not fulfilled (but first fulfill) then t[j+1]=t[j]+alpha. 

I shall be waiting for your positive response.

Dear Users!

I hope everyone here is fine. In the attached file I have a list of points in three dimensions. I want to plot surfaceplot (also in Dimension=2) of only those points which are less than 1.

But I want to plot the density plot for all points with the range on x-axes 5 to 15 and the range on y-axes 50-1000

Help.mw

1 2 3 4 5 6 7 Last Page 1 of 38